from django.contrib import admin
from .models import *


# Register your models here.

class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title', 'create_time')


class CategoryAdmin(admin.ModelAdmin):
    list_display = ('cname', 'create_time')


class PositionAdmin(admin.ModelAdmin):
    list_display = ('position_name', 'corporation', 'create_time')


admin.site.register(User)
admin.site.register(Category, CategoryAdmin)
admin.site.register(Article, ArticleAdmin)
admin.site.register(Position, PositionAdmin)
